home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
source
/
swagg-m
/
hardware.swg
/
0003_Determine Cluster Size.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1993-05-28
|
457 b
|
20 lines
{
> Is there any way to find the size of each allocation Unit in a Hard drive?
}
Uses Dos;
Function clustsize (drive : Byte) : Word;
Var
regs : Registers;
begin
regs.cx := 0; {set For error-checking just to be sure}
regs.ax := $3600; {get free space}
regs.dx := drive; {0=current, 1=a:, 2=b:, etc.}
msDos (regs);
clustsize := regs.ax * regs.cx; {cluster size!}
end;
begin
Writeln(ClustSize(0));
end.